
echo "开始部署人像认证平台"

release() {
  ssh -p 49227 root@$1 "mkdir -p /opt/$2"
  rsync $3 root@$1:/opt/$2/docker-compose.yaml -e "ssh -p 49227"
  rsync $4 root@$1:/opt/$2/start.sh -e "ssh -p 49227"
  ssh -p 49227 root@$1 "cd /opt/$2;pwd;ls;./start.sh"
}

PLATFORM="iap"
# 业务服务器
serviceList=(172.26.51.75)
for service in ${serviceList[@]}; do
  echo "开始部署：${service}"

  release $service $PLATFORM docker-compose.yaml business-start.sh

  echo "部署：${service} 完成"
done

echo "部署人像认证平台完成"
